/**
 * Created by haiqiang on 17/3/16.
 */
import java.util.Base64;

public class base64 {
    public static void main(String[] args) {
        byte[] encodedBytes = Base64.getEncoder().encode("Test".getBytes());
        System.out.println("encodedBytes " + new String(encodedBytes));
        byte[] decodedBytes = Base64.getDecoder().decode(encodedBytes);
        System.out.println("decodedBytes " + new String(decodedBytes));
    }
}
